package com.kaifamiao.demo.d0729.am;

public class Demo01 {

    public static void main(String[] args) {
        Father man = new Son();
        // 运行时 多态
        man.marry();

        // 编译时 多态
        m();
        m(1);
    }

    public static void call(Father father){
        father.marry();
    }



    public static void m(){
        System.out.println("m()");
    }

    public static void m(int a){
        System.out.println("m(int)");
    }
}
